import * as Types from './mutations-type'

const mutations = {
  [Types.INCREMENT](state,count){
    //state是自动放入的
    state.count += count;
  },
  [Types.DECTEMENT](state){
    state.count -=1
  }
};

export default mutations;
